<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2005 XBRL International. All Rights Reserved. -->
<?xml-stylesheet type="text/xsl" href="../../infrastructure/test.xsl"?>
<testcase
  xmlns="http://xbrl.org/2008/conformance"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://xbrl.org/2008/conformance ../../infrastructure/test.xsd"
  xmlns:xbrlfe="http://xbrl.org/2008/formula/error"
  xmlns:binding="http://xbrl.org/2008/binding/errors"
  xmlns:label="http://xbrl.org/2008/label/errors"
  xmlns:reference="http://xbrl.org/2008/reference/errors"  
  >
  <creator>
    <name>Herm Fischer</name>
    <email>fischer@markv.com</email>
  </creator>
  <number>0018</number>
  <name>GL Examples (Use of Tuple Filters)</name>
  <description>
      Several variations based on GL Trial Balance Example. See GLExamples.ppt.
      Special note on general filters:
                as they "fire" on each item and will produce type errors
                when trying to compare non-string items to string constants,
                and are not dependent on conceptName filters, each has
                code to be sure it only tests when on the right concept.
                (See Wiki CR1 notes.)  This is subject to change.
  </description>
  <reference specification="FORMULA" id="sec-formula"/>
  <reference specification="CONSISTENCY-ASSERTION" id="sec-processing-model"/>

  <variation id="V-01">
    <name>Check trial balance</name>
    <description>
      Determines if the trial balance sections are in balance 
      (balance brought forward and standard transactions sections).
    </description>
    <data>
      <instance readMeFirst="true">instance-trial-balance-check.xml</instance> 
      <schema readMeFirst="false">concepts-trial-balance-check.xsd</schema>
      <linkbase readMeFirst="false">formulae-trial-balance-check.xml</linkbase>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/case-c-b-m-u-t/gl-plt-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-cor-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-bus-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-usk-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-muc-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-taf-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">cor/gl-cor-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">cor/gl-cor-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">cor/gl-cor-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">gen/gl-gen-2006-10-25.xsd</schema>
      <schema readMeFirst="false">bus/gl-bus-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">bus/gl-bus-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">bus/gl-bus-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">muc/gl-muc-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">muc/gl-muc-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">muc/gl-muc-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">taf/gl-taf-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">taf/gl-taf-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">taf/gl-taf-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">usk/gl-usk-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">usk/gl-usk-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">usk/gl-usk-content-2006-10-25-presentation.xml</linkbase>
    </data>
    <result/>
  </variation>
  
  <variation id="V-02">
    <name>Test ending balance</name>
    <description>
      Determines if each account ending balance is equal to the
      sum of the starting balance plus changes. Output is a string
      fact for each account, with identification of the account 
      and whether in/out of balance.
    </description>
    <data>
      <instance readMeFirst="true">instance-test-ending-balance.xml</instance> 
      <schema readMeFirst="false">concepts-test-ending-balance.xsd</schema>
      <linkbase readMeFirst="false">formulae-trial-balance.xml</linkbase>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/case-c-b-m-u-t/gl-plt-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-cor-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-bus-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-usk-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-muc-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-taf-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">cor/gl-cor-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">cor/gl-cor-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">cor/gl-cor-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">gen/gl-gen-2006-10-25.xsd</schema>
      <schema readMeFirst="false">bus/gl-bus-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">bus/gl-bus-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">bus/gl-bus-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">muc/gl-muc-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">muc/gl-muc-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">muc/gl-muc-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">taf/gl-taf-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">taf/gl-taf-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">taf/gl-taf-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">usk/gl-usk-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">usk/gl-usk-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">usk/gl-usk-content-2006-10-25-presentation.xml</linkbase>
    </data>
    <result/>
  </variation>
  
  <variation id="V-03">
    <name>Compute ending balance</name>
    <description>
      Computes each account ending balance is equal to the
      sum of the starting balance plus changes for that account.
      Output is a string fact for each account with the identifcation
      of account and ending balance.
    </description>
    <data>
      <instance readMeFirst="true">instance-compute-ending-balance.xml</instance> 
      <schema readMeFirst="false">concepts-compute-ending-balance.xsd</schema>
      <linkbase readMeFirst="false">formulae-compute-balance.xml</linkbase>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/case-c-b-m-u-t/gl-plt-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-cor-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-bus-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-usk-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-muc-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">plt/case-c-b-m-u-t/gl-taf-content-2006-10-25.xsd</schema>
      <schema readMeFirst="false">cor/gl-cor-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">cor/gl-cor-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">cor/gl-cor-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">gen/gl-gen-2006-10-25.xsd</schema>
      <schema readMeFirst="false">bus/gl-bus-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">bus/gl-bus-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">bus/gl-bus-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">muc/gl-muc-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">muc/gl-muc-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">muc/gl-muc-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">taf/gl-taf-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">taf/gl-taf-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">taf/gl-taf-content-2006-10-25-presentation.xml</linkbase>
      <schema readMeFirst="false">usk/gl-usk-content-2006-10-25.xsd</schema>
      <linkbase readMeFirst="false">usk/gl-usk-content-2006-10-25-label.xml</linkbase>
      <linkbase readMeFirst="false">usk/gl-usk-content-2006-10-25-presentation.xml</linkbase>
    </data>
    <result/>
  </variation>
  
</testcase>


